#pragma once

#include "stdafx.h"
#include "ffmpeg.h"

HRESULT process_ffmpeg_raw_data_to_IMFSample(IMFSample** ppNewSample,PBYTE pRawData,UINT nDataSize,AVPacket* packet,AVRational time_base,LONGLONG start_time,LONGLONG duration);
HRESULT process_ffmpeg_raw_packet_to_IMFSample(IMFSample** ppNewSample,AVPacket* packet,AVRational time_base,LONGLONG start_time);
HRESULT process_ffmpeg_h264_packet_to_IMFSample(IMFSample** ppNewSample,AVPacket* packet,AVRational time_base,LONGLONG start_time);
HRESULT process_ffmpeg_h264_IMFSample_merge_sps_pps(IMFSample** ppNewSample,IMFSample* pOldSample,PBYTE sps_pps,int size);